package com.ruoyi.service.impl;

import com.ruoyi.domain.ZhwyChargeitemRentalcontract;
import com.ruoyi.mapper.ZhwyChargeItemContractMapper;
import com.ruoyi.service.ZhwyChargeItemContractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName ZhwyChargeItemContractServiceImpl
 * Description TODO
 * Author JunEr
 * Date 2024年05月09日 10:54
 * Version 1.0
 */
@Service
public class ZhwyChargeItemContractServiceImpl implements ZhwyChargeItemContractService {
    @Autowired
    private ZhwyChargeItemContractMapper mapper;
    @Override
    public int saveItemContract(ZhwyChargeitemRentalcontract zhwyChargeitemRentalcontract) {
        return mapper.addItemContract(zhwyChargeitemRentalcontract);
    }

    @Override
    public int removeByItemContract(ZhwyChargeitemRentalcontract zhwyChargeitemRentalcontract) {
        return mapper.deleteByItemContract(zhwyChargeitemRentalcontract);
    }

    @Override
    public Long[] listAll(Long id) {
        return mapper.selectAll(id);
    }
}
